(:: pragma bea:global-element-parameter parameter="$offerCheck1" element="ns0:offerCheck" location="../WSDLs/offerCheck.wsdl" ::)
(:: pragma bea:global-element-return element="ns1:checkingOfferId" location="../WSDLs/mockSL_checkingOfferId.wsdl" ::)

declare namespace ns1 = "http://www.example.org/mockSL_checkingOfferId/";
declare namespace ns0 = "http://www.example.org/offerCheck/";
declare namespace xf = "http://tempuri.org/ActivateNewCustomer/Transformation/test/";

declare function xf:test($offerCheck1 as element(ns0:offerCheck))
    as element(ns1:checkingOfferId) {
        <ns1:checkingOfferId>
            <offerId>{ data($offerCheck1/offerId) }</offerId>
            <mvnoID>{ data($offerCheck1/mvnoID) }</mvnoID>
            <clearwireMarketID>{ data($offerCheck1/clearwireMarketID) }</clearwireMarketID>
            <SKU>{ data($offerCheck1/SKU) }</SKU>
        </ns1:checkingOfferId>
};

declare variable $offerCheck1 as element(ns0:offerCheck) external;

xf:test($offerCheck1)